package com.example.onlinemusic.mapper;

import com.example.onlinemusic.model.User;
import org.apache.ibatis.annotations.Mapper;

import javax.jws.soap.SOAPBinding;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: H_tao_X
 * Date: 2022-12-04
 * Time: 22:36
 */


@Mapper
public interface UserMapper {

    // 登录功能,查询操作
    User login(User userLogin);// login 方法，返回为 User 对象

    // 加密登录
    User selectByName(String username);

    // 注册功能,插入一个 user 对象
    int insertUser(User user);
}
